package net.dengzixu.java.homework.period5;

import java.util.Scanner;

public class Period5ClassesTime {
    public static void main(String[] args) {
//        Scanner scanner = new Scanner(System.in);
//        System.out.print("请输入整数秒: ");
//        int time = scanner.nextInt();;

        int time = (int) (Math.random() * 5000);

        System.out.println(time);
        int outSecond = time % 60;
        int outMinute = time / 60;

        System.out.println(outMinute + "分" + outSecond + "秒");


    }
}
